package cn.shop.dys.bean;

/**
 * Created by Administrator on 2016/4/24.
 */
public class CommitOrderRequset {
    //    POST	/ordersumbit	需要先登录获取userid，在将userid添加到请求头，如果返回错误码1533需要重新登录
//    参数名称	描述	样例
//    sku	商品ID:数量:属性ID|商品ID:数量:属性ID	1:3:1,2,3,4|2:2:2,3
//    addressId	地址簿ID	139
//    paymentType	支付方式	1  -- 0到付 1支付宝 2微信
//    deliveryType	送货时间	1
//    invoiceType	发票类型	1=>个人 2=>单位  改 0普通发票, 1电子发票
//    invoiceTitle	发票抬头	传智慧播客教育科技有限公司
//    invoiceContent	发票内容	1
    public String sku;//商品ID:数量:属性ID|商品ID:数量:属性ID	1:3:1,2,3,4|2:2:2,3
    public int addressId;
    public int paymentType;//0到付 1支付宝 2微信
    public int deliveryType;//送货时间
    public int invoiceType;// 0普通发票, 1电子发票
    public String invoiceTitle;//发票抬头
    public String invoiceContent;//发票内容

    public CommitOrderRequset(String sku, int addressId, int paymentType, int deliveryType, int invoiceType, String invoiceTitle, String invoiceContent) {
        this.sku = sku;
        this.addressId = addressId;
        this.paymentType = paymentType;
        this.deliveryType = deliveryType;
        this.invoiceType = invoiceType;
        this.invoiceTitle = invoiceTitle;
        this.invoiceContent = invoiceContent;

    }

    public CommitOrderRequset() {
    }

    @Override
    public String toString() {
        return "CommitOrderRequset{" +
                "sku='" + sku + '\'' +
                ", addressId=" + addressId +
                ", paymentType=" + paymentType +
                ", deliveryType=" + deliveryType +
                ", invoiceType=" + invoiceType +
                ", invoiceTitle='" + invoiceTitle + '\'' +
                ", invoiceContent=" + invoiceContent +
                '}';
    }
}
